import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  resolve: {
    alias: {
      '@': '/src'
    }
  },
  server: {
    proxy: {
      '/neutronApi': {
        target: 'https://ai-test.witmore.cn/neutronApi',
        changeOrigin: true,
        rewrite: path => path.replace(/^\/neutronApi/, '')
      },
    },
  },
})